package subraSoft.fenix.gui.administracion.authentication;

import subraSoft.centaurus.gui.option.amb.CenABM;
import subraSoft.centaurus.gui.option.amb.CenABMSaveOrUpdateDialog;
import subraSoft.centaurus.gui.option.amb.CenPaginableTableModel;
import subraSoft.centaurus.model.cobj.CenDefaultCObj;
import subraSoft.fenix.model.authentication.cobj.FenPerfilCObj;


@SuppressWarnings("serial")
public class FenABMPerfiles extends CenABM
{
	public FenABMPerfiles()
	{
		super("ABM Perfiles");
	}
	
	@Override
	protected CenPaginableTableModel getModel() 
	{
		return new FenPerfilPaginableTableModel(3);
	}

	@Override
	protected CenABMSaveOrUpdateDialog getSaveOrUpdateDialog(CenDefaultCObj cobj) 
	{
		return new FenPerfilSaveOrUpdateDialog((FenPerfilCObj)cobj);
	}
	
	@Override
	public String validarEliminacion(CenDefaultCObj cobj) 
	{
		return null;
	}
	
	@SuppressWarnings("unchecked")
	@Override
	protected Class getTypePrimaryId() 
	{
		return String.class;
	}
}
